package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 城市信息对象 woka_city
 *
 * @author Simon
 * @date 2021-12-31
 */
@Data
public class WokaCity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 城市代码
     */
    @Excel(name = "城市代码")
    private String code;

    /**
     * 城市名
     */
    @Excel(name = "城市名")
    private String name;

    /**
     * 省份代码
     */
    @Excel(name = "省份代码")
    private String provinceCode;

    /**
     * 区县数据信息
     */
    private List<WokaArea> wokaAreaList;

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public List<WokaArea> getWokaAreaList() {
        return wokaAreaList;
    }

    public void setWokaAreaList(List<WokaArea> wokaAreaList) {
        this.wokaAreaList = wokaAreaList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("code", getCode())
                .append("name", getName())
                .append("provinceCode", getProvinceCode())
                .append("wokaAreaList", getWokaAreaList())
                .toString();
    }
}
